#include <tsin/util/EventSource.hpp>
#include <tsin/util/EventMediator.hpp>

using namespace tsin;

void EventSource::emit(int event)
{
        EventMediator::get()->broadcastEvent(this, eventBase + event);
}

void EventSource::registerListener(EventListener *listener, int event)
{
        EventMediator::get()->registerListener(listener, eventBase + event);
}
